package util

import (
	"io"
	"net/http"
)

func Get(url string, data map[string]string) ([]uint8, error) {

	resp, err := http.Get(url)
	if err != nil {
		return nil, err
	}
	defer resp.Body.Close()
	body, jxerr := io.ReadAll(resp.Body)
	if jxerr != nil {
		return nil, jxerr
	} else {
		return body, nil
	}
}
